package com.xiaodou.mjf.web.xface.product.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonProperty;

import java.util.Date;

/**
 * Created by Rocky on 2/26/15.
 */
public class MeiLiProduct {

    private String id;
    private String icon;
    private String name;
    private Double amount;
    private Integer term;
    private Integer count;
    @JsonFormat(pattern = "yyyy-MM-dd")
    @JsonProperty("expiry_time")
    private Date expiryTime;
    @JsonProperty("refund_amount")
    private Double refundAmount;



	public MeiLiProduct(String id, String icon, String name, Double amount,
			Integer term, Integer count, Date expiryTime, Double refundAmount) {
		super();
		this.id = id;
		this.icon = icon;
		this.name = name;
		this.amount = amount;
		this.term = term;
		this.count = count;
		this.expiryTime = expiryTime;
		this.refundAmount = refundAmount;
	}

	public MeiLiProduct(){}



	public Double getRefundAmount() {
  		return refundAmount;
  	}

  	public void setRefundAmount(Double refundAmount) {
  		this.refundAmount = refundAmount;
  	}
    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getIcon() {
        return icon;
    }

    public void setIcon(String icon) {
        this.icon = icon;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Double getAmount() {
        return amount;
    }

    public void setAmount(Double amount) {
        this.amount = amount;
    }

    public Integer getTerm() {
        return term;
    }

    public void setTerm(Integer term) {
        this.term = term;
    }

    public Integer getCount() {
        return count;
    }

    public void setCount(Integer count) {
        this.count = count;
    }

    public Date getExpiryTime() {
        return expiryTime;
    }

    public void setExpiryTime(Date expiryTime) {
        this.expiryTime = expiryTime;
    }
}
